﻿@model handvn.Models.HomeView
@{
    ViewBag.Title = "Handvn";
}
@*<h2>@ViewBag.Message</h2>*@
<div id="tl_left_sidebar">
    <div class="tl_left_sidebar_box">
        <div class="tl_left_sidebar_title">
            Danh mục
        </div>
        <div class="tl_category">
            <ul>
                @foreach (var item in Model.Categories)
                {
                    <li>
                        @Html.ActionLink(item.TenDanhMuc, "../detailcategories/view", new { cateid = item.CategoriesID })
                    </li>
              
                }
            </ul>
            <br />
        </div>
    </div>
    <div class="tl_left_sidebar_box">
        <div class="tl_support">
            <h4>
                Hổ trợ trực tuyến</h4>
            <ul>
                <div class="tl_left_sidebar_title">Duy Tan</div>
                <li>
                    <!--
        Skype 'My status' button http://www.skype.com/go/skypebuttons
        -->
                    <script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
                    <a href="skype:duytanpham88?call">
                        <img src="http://mystatus.skype.com/balloon/duytanpham88" style="border: none; background-color:#F4F8EE" width="150"
                            height="40" alt="My status" /></a> </li>
                <li><strong>&nbsp;</strong>
                </li>
            </ul>
            <br />
        </div>
    </div>
</div>
<!-- End left-->
<div id="tl_right_sidebar">
    <div class="tl_title_home">
        Sản phẩm mới</div>
    @foreach (var item in Model.Product)
    {  
        <div class="tl_item">
            <a href="../product/viewdetail?prod=@item.ProductID">
                <img class="tl_item_img" src="../../Images/HinhAnh/@item.HinhAnh" alt="@item.TenSanPham"/></a>
            <a  class="tl_item_title" href="../product/viewdetail?prod=@item.ProductID">@item.TenSanPham</a>
            @* @Html.ActionLink(item.TenSanPham, "../DetailProduct/View", new { ProductID = item.ProductID })*@
            <a  class="tl_item_user" href="../user/view?user=@item.UserID">@item.User.TenKhachhang</a>
            <div class="tl_item_rice">@item.GiaSanPham vnd</div>
        </div>       
    }
    <br />
    <div class="tl_title_home">
        Sản phẩm yêu thích</div>
    @foreach (var item in Model.ProductView)
    {  
        <div class="tl_item">
            <a href="../product/viewdetail?prod=@item.ProductID">
                <img class="tl_item_img" src="../../Images/HinhAnh/@item.HinhAnh" alt=""/></a>
            <a  class="tl_item_title" href="../product/viewdetail?prod=@item.ProductID">@item.TenSanPham</a>
            @* @Html.ActionLink(item.TenSanPham, "../DetailProduct/View", new { ProductID = item.ProductID })*@
            <a  class="tl_item_user" href="../user/view?user=@item.UserID">@item.User.TenKhachhang</a>
            <div class="tl_item_rice">@item.GiaSanPham vnd</div>
        </div>       
    }
    <div class="tl_title_home">
        Shop
    </div>
    @*Slideshow*@
    <div id="tS1" class="jThumbnailScroller" style="margin-top: 160px;">
        <div class="jTscrollerContainer">
            <div class="jTscroller">
                @foreach (var item in Model.Product)
                {
                    <a href="../product/viewdetail?prod=@item.ProductID">
                        <img src="../../Images/HinhAnh/@item.HinhAnh" width="120px" height="95px" alt="" /></a>
                }
            </div>
        </div>
        <a href="#" class="jTscrollerPrevButton"></a><a href="#" class="jTscrollerNextButton">
        </a>
    </div>
     <div class="clear">
        </div>
        <!-- Thẻ div trống với class="clear"-->
</div>
<!-- End Right-->
